package com.kfirszt.elearning.utils.generators;

import com.kfirszt.elearning.dictionary.QuestionType;

public class GeneratorsFactory {

	public Generator getGenerator(QuestionType questionType) {
		switch (questionType) {
		case MULTI_CHOICE:
			return new MultiChoiceGenerator();
		case ONE_CHOICE:
			return new OneChoiceGenerator();
		case TEXT:
			return new TextGenerator();
		default:
			break;
		}
		return null;
	}

}
